<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<html>
<head>
  <style>img{float: left; }</style>
  <script src="../js/jquery-1.4.2.js"></script>
  <script src="../js/ttclient-0.0.1.js"></script>
</head>
<body>

<script>
		$('#divIndicator').show();
/*	
	
ttClient.getUserInfo(23, function(data){
	alert(ttClient.getObjectText(data));
	$("#divContainer").html(ttClient.getObjectText(data));
	$('#divIndicator').hide();
	$("#divContainer div:even").css("background-color", "#bbbbff");
	//alert($("div"));
	}
);
*/

var u = {};
u.p = "ddd<scripdt> s          =;'";
u.uid="home";
ttClient.user.add(u, function(data){
	alert(ttClient.getObjectText(data));
	$("#divContainer").html(ttClient.getObjectText(data));
	$('#divIndicator').hide();
	$("#divContainer div:even").css("background-color", "#bbbbff");
	//alert($("div"));
	}
);
/*

ttClient.user.get(37, function(data){
	alert(ttClient.getObjectText(data));
	$("#divContainer").html(ttClient.getObjectText(data));
	$('#divIndicator').hide();
	$("#divContainer div:even").css("background-color", "#bbbbff");
	//alert($("div"));
	}
);
*/

</script>

<div id="divIndicator" class="indicator">
	<img src="../img/13221833.gif" />loading...
</div>	

<div id="divContainer"></div>
</body>
</html>